import request from '@/utils/request'

// 查询生产厂家列表
export function listManufacturer(query) {
  return request({
    url: '/system/manufacturer/list',
    method: 'get',
    params: query
  })
}

// 查询生产厂家详细
export function getManufacturer(mid) {
  return request({
    url: '/system/manufacturer/' + mid,
    method: 'get'
  })
}

// 新增生产厂家
export function addManufacturer(data) {
  return request({
    url: '/system/manufacturer',
    method: 'post',
    data: data
  })
}

// 修改生产厂家
export function updateManufacturer(data) {
  return request({
    url: '/system/manufacturer',
    method: 'put',
    data: data
  })
}

// 删除生产厂家
export function delManufacturer(mid) {
  return request({
    url: '/system/manufacturer/' + mid,
    method: 'delete'
  })
}
